package demo.study;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ButtonTest extends Activity {
	Activity me;
	Button buttonHello;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.buttontestmain);
		me = this;
		buttonHello = (Button) this.findViewById(R.id.buttonHello);
		buttonHello.setOnClickListener(buttonHelloListener);

	}

	private View.OnClickListener buttonHelloListener = new View.OnClickListener() {
		public void onClick(View v) {
			//me.showAlert("Title", "Hello!", "OK", true);
			me.showDialog(R.drawable.ic_launcher);
		}
	};
}
